
# with open('example.txt', 'w') as file:
#     for  i in range(1, 1000):
#         # file.write("application-resource resource%d\n" % i)
#         # file.write("rule id %d from any to any service any permit\n" % i)
#         file.write("rule id %d\n" % i)
#         file.write("domain-book hostbook1\n")
#         file.write("exit\n")


with open('example.txt', 'w') as file:
    for  i in range(1, 8001):
        # file.write("application-resource resource%d\n" % i)
        # file.write("application-resource resource%d\n" % i)
        # file.write("exit\n")
        # file.write("application-resource-group res-group%d\n" % i)
        # file.write("exit\n")
        file.write("ztna-rule id %d\n" % i)
        file.write("action permit\n")
        file.write("application-resource res%d\n" % (i % 4096))
        file.write("exit\n")
        # file.write("rule id %d\n" % i)
        # file.write("domain-book lsz-test\n")


# with open('example.txt', 'w') as file:
#     for  i in range(1024, 4097):
#         # file.write("application-resource resource%d\n" % i)
#         # file.write("application-resource resource%d\n" % i)
#         # file.write("exit\n")
#         # file.write("application-resource-group res-group%d\n" % i)
#         # file.write("exit\n")
#         file.write("application-resource resource%d\n" % i)
#         file.write("exit\n")
#         # file.write("rule id %d\n" % i)
#         # file.write("domain-book lsz-test\n")